package com.ydw.bean_innit_destrory.JSR_250;

import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;
import javax.annotation.PreDestroy;

/**
 * @author ydw
 * @create 2017-07-06 下午3:22
 **/
@Component
public class JSR_250 {

    @PostConstruct
    public void innit(){
        System.out.println("bean的初始化");
    }

    public JSR_250() {
        System.out.println("构造方法初始化");
    }

    @PreDestroy
    public void destrory(){
        System.out.println("bean的销毁方法");
    }
}
